export default class followResult{
  has_next:number;
  total:number;
  follow_list:Array<followSeasonInfo>;
}

export class followSeasonInfo {
  status: number;
  badge: string;
  badge_type: number;
  cover: string;
  is_finish: number;
  title: string;
  season_id: number;
  season_type: number;
  season_type_name: string;
  url: string;
  new_ep: followSeasonNewEp;
  progress: followSeasonProgress;
  areas: Array<followSeasonAreas>;

  get areaStr() {
    let str = this.season_type_name;
    if (this.areas != null && this.areas.length != 0) {
      str += " | ";
      for (let item of this.areas)
        str += item.name + "、";
      str = str.substring(str.length - 1)
    }
    return str;
  }
}

export class followSeasonNewEp {
  cover: string;
  index_show: string;
  duration: number;
  id: number;
  is_new: number;
}

export class followSeasonProgress {
  index_show: string;
  last_ep_id: number;
  last_time: number;
}

export class followSeasonAreas {
  id: number;
  name: string;
}